<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::best_ever_solution类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1best__ever__solution.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classmets_1_1best__ever__solution-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::best_ever_solution类 参考<div class="ingroups"><a class="el" href="group__common.html">Common components</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>The best ever solution recorder can be used as a simple solution recorder that just records the best copyable solution found during its lifetime.  
 <a href="classmets_1_1best__ever__solution.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="abstract-search_8hh_source.html">abstract-search.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::best_ever_solution 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1best__ever__solution.png" usemap="#mets::best_5Fever_5Fsolution_map" alt=""/>
  <map id="mets::best_5Fever_5Fsolution_map" name="mets::best_5Fever_5Fsolution_map">
<area href="classmets_1_1solution__recorder.html" title="The solution recorder is used by search algorithm, at the end of each iteration, to record the best s..." alt="mets::solution_recorder" shape="rect" coords="0,0,149,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab3a64843b36a519b269ad5bdae7486dc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#ab3a64843b36a519b269ad5bdae7486dc">best_ever_solution</a> (<a class="el" href="classmets_1_1evaluable__solution.html">evaluable_solution</a> &amp;best)</td></tr>
<tr class="memdesc:ab3a64843b36a519b269ad5bdae7486dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="classmets_1_1evaluable__solution.html" title="A copyable and evaluable solution implementation,">mets::evaluable_solution</a> will be stored as a reference: please provide an instance that is not modified/needed elsewhere.  <a href="classmets_1_1best__ever__solution.html#ab3a64843b36a519b269ad5bdae7486dc">更多...</a><br /></td></tr>
<tr class="separator:ab3a64843b36a519b269ad5bdae7486dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e6f8ac75a30ab8b9ba6d510f0e0ed9a"><td class="memItemLeft" align="right" valign="top"><a id="a7e6f8ac75a30ab8b9ba6d510f0e0ed9a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#a7e6f8ac75a30ab8b9ba6d510f0e0ed9a">best_ever_solution</a> ()</td></tr>
<tr class="memdesc:a7e6f8ac75a30ab8b9ba6d510f0e0ed9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unimplemented default ctor. <br /></td></tr>
<tr class="separator:a7e6f8ac75a30ab8b9ba6d510f0e0ed9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cba73c199f578fb2442645d34cbd373"><td class="memItemLeft" align="right" valign="top"><a id="a3cba73c199f578fb2442645d34cbd373"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#a3cba73c199f578fb2442645d34cbd373">best_ever_solution</a> (const <a class="el" href="classmets_1_1best__ever__solution.html">best_ever_solution</a> &amp;)</td></tr>
<tr class="memdesc:a3cba73c199f578fb2442645d34cbd373"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unimplemented copy ctor. <br /></td></tr>
<tr class="separator:a3cba73c199f578fb2442645d34cbd373"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0a65eb165caf5cf8c9a087e4b5d580a"><td class="memItemLeft" align="right" valign="top"><a id="ad0a65eb165caf5cf8c9a087e4b5d580a"></a>
<a class="el" href="classmets_1_1best__ever__solution.html">best_ever_solution</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#ad0a65eb165caf5cf8c9a087e4b5d580a">operator=</a> (const <a class="el" href="classmets_1_1best__ever__solution.html">best_ever_solution</a> &amp;)</td></tr>
<tr class="memdesc:ad0a65eb165caf5cf8c9a087e4b5d580a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unimplemented assignment operator. <br /></td></tr>
<tr class="separator:ad0a65eb165caf5cf8c9a087e4b5d580a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb8e2865720a67f8b8c8c5226a7cd586"><td class="memItemLeft" align="right" valign="top"><a id="acb8e2865720a67f8b8c8c5226a7cd586"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#acb8e2865720a67f8b8c8c5226a7cd586">accept</a> (const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;sol)</td></tr>
<tr class="memdesc:acb8e2865720a67f8b8c8c5226a7cd586"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accept is called at the end of each iteration for an opportunity to record the best solution found during the search. <br /></td></tr>
<tr class="separator:acb8e2865720a67f8b8c8c5226a7cd586"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a328f0da5109ca7fc9d2b11cad353a167"><td class="memItemLeft" align="right" valign="top"><a id="a328f0da5109ca7fc9d2b11cad353a167"></a>
const <a class="el" href="classmets_1_1evaluable__solution.html">evaluable_solution</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#a328f0da5109ca7fc9d2b11cad353a167">best_seen</a> () const</td></tr>
<tr class="memdesc:a328f0da5109ca7fc9d2b11cad353a167"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the best solution found since the beginning. <br /></td></tr>
<tr class="separator:a328f0da5109ca7fc9d2b11cad353a167"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26bab117104a3f1997a718cb274377a7"><td class="memItemLeft" align="right" valign="top"><a id="a26bab117104a3f1997a718cb274377a7"></a>
gol_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#a26bab117104a3f1997a718cb274377a7">best_cost</a> () const</td></tr>
<tr class="memdesc:a26bab117104a3f1997a718cb274377a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Best cost seen. <br /></td></tr>
<tr class="separator:a26bab117104a3f1997a718cb274377a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1solution__recorder"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1solution__recorder')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1solution__recorder.html">mets::solution_recorder</a></td></tr>
<tr class="memitem:a7a58f650eca66d71b23030cb24825e15 inherit pub_methods_classmets_1_1solution__recorder"><td class="memItemLeft" align="right" valign="top"><a id="a7a58f650eca66d71b23030cb24825e15"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1solution__recorder.html#a7a58f650eca66d71b23030cb24825e15">solution_recorder</a> ()</td></tr>
<tr class="memdesc:a7a58f650eca66d71b23030cb24825e15 inherit pub_methods_classmets_1_1solution__recorder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default ctor. <br /></td></tr>
<tr class="separator:a7a58f650eca66d71b23030cb24825e15 inherit pub_methods_classmets_1_1solution__recorder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a3082259340761f3cb96c4eecb1d733 inherit pub_methods_classmets_1_1solution__recorder"><td class="memItemLeft" align="right" valign="top"><a id="a1a3082259340761f3cb96c4eecb1d733"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1solution__recorder.html#a1a3082259340761f3cb96c4eecb1d733">solution_recorder</a> (const <a class="el" href="classmets_1_1solution__recorder.html">solution_recorder</a> &amp;)</td></tr>
<tr class="memdesc:a1a3082259340761f3cb96c4eecb1d733 inherit pub_methods_classmets_1_1solution__recorder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unimplemented copy ctor. <br /></td></tr>
<tr class="separator:a1a3082259340761f3cb96c4eecb1d733 inherit pub_methods_classmets_1_1solution__recorder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeca20f015a2bbadcd8fc2beb09ba0fc1 inherit pub_methods_classmets_1_1solution__recorder"><td class="memItemLeft" align="right" valign="top"><a id="aeca20f015a2bbadcd8fc2beb09ba0fc1"></a>
<a class="el" href="classmets_1_1solution__recorder.html">solution_recorder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1solution__recorder.html#aeca20f015a2bbadcd8fc2beb09ba0fc1">operator=</a> (const <a class="el" href="classmets_1_1solution__recorder.html">solution_recorder</a> &amp;)</td></tr>
<tr class="memdesc:aeca20f015a2bbadcd8fc2beb09ba0fc1 inherit pub_methods_classmets_1_1solution__recorder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unimplemented assignment operator. <br /></td></tr>
<tr class="separator:aeca20f015a2bbadcd8fc2beb09ba0fc1 inherit pub_methods_classmets_1_1solution__recorder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54c5d7c515cdb304cb3d0f449388dbc3 inherit pub_methods_classmets_1_1solution__recorder"><td class="memItemLeft" align="right" valign="top"><a id="a54c5d7c515cdb304cb3d0f449388dbc3"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1solution__recorder.html#a54c5d7c515cdb304cb3d0f449388dbc3">~solution_recorder</a> ()</td></tr>
<tr class="memdesc:a54c5d7c515cdb304cb3d0f449388dbc3 inherit pub_methods_classmets_1_1solution__recorder"><td class="mdescLeft">&#160;</td><td class="mdescRight">A virtual dtor. <br /></td></tr>
<tr class="separator:a54c5d7c515cdb304cb3d0f449388dbc3 inherit pub_methods_classmets_1_1solution__recorder"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a3753647b3e068ad010bb92efcb8b4166"><td class="memItemLeft" align="right" valign="top"><a id="a3753647b3e068ad010bb92efcb8b4166"></a>
<a class="el" href="classmets_1_1evaluable__solution.html">evaluable_solution</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1best__ever__solution.html#a3753647b3e068ad010bb92efcb8b4166">best_ever_m</a></td></tr>
<tr class="memdesc:a3753647b3e068ad010bb92efcb8b4166"><td class="mdescLeft">&#160;</td><td class="mdescRight">Records the best solution <br /></td></tr>
<tr class="separator:a3753647b3e068ad010bb92efcb8b4166"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>The best ever solution recorder can be used as a simple solution recorder that just records the best copyable solution found during its lifetime. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ab3a64843b36a519b269ad5bdae7486dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3a64843b36a519b269ad5bdae7486dc">&#9670;&nbsp;</a></span>best_ever_solution()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">mets::best_ever_solution::best_ever_solution </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmets_1_1evaluable__solution.html">evaluable_solution</a> &amp;&#160;</td>
          <td class="paramname"><em>best</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The <a class="el" href="classmets_1_1evaluable__solution.html" title="A copyable and evaluable solution implementation,">mets::evaluable_solution</a> will be stored as a reference: please provide an instance that is not modified/needed elsewhere. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">best</td><td>The instance used to store the best solution found (will be modified). </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                                                 : </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;      <a class="code" href="classmets_1_1solution__recorder.html#a7a58f650eca66d71b23030cb24825e15">solution_recorder</a>(), </div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;      <a class="code" href="classmets_1_1best__ever__solution.html#a3753647b3e068ad010bb92efcb8b4166">best_ever_m</a>(best) </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    { }</div>
<div class="ttc" id="aclassmets_1_1best__ever__solution_html_a3753647b3e068ad010bb92efcb8b4166"><div class="ttname"><a href="classmets_1_1best__ever__solution.html#a3753647b3e068ad010bb92efcb8b4166">mets::best_ever_solution::best_ever_m</a></div><div class="ttdeci">evaluable_solution &amp; best_ever_m</div><div class="ttdoc">Records the best solution</div><div class="ttdef"><b>Definition:</b> abstract-search.hh:235</div></div>
<div class="ttc" id="aclassmets_1_1solution__recorder_html_a7a58f650eca66d71b23030cb24825e15"><div class="ttname"><a href="classmets_1_1solution__recorder.html#a7a58f650eca66d71b23030cb24825e15">mets::solution_recorder::solution_recorder</a></div><div class="ttdeci">solution_recorder()</div><div class="ttdoc">Default ctor.</div><div class="ttdef"><b>Definition:</b> abstract-search.hh:54</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="abstract-search_8hh_source.html">abstract-search.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1best__ever__solution.html">best_ever_solution</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
